package com.plm.maque.mongo;

import com.plm.maque.entity.MongoImage;

import java.io.IOException;

/**
 * @author Limi
 * @create 2019-04-21 17:01
 */
public interface ImageOperate {

    /**
     * 保存文件输入流到mongodb
     */
    String saveImageToMongoDB(MongoImage mongoImage);

    /**
     * 根据objectId从mongodb上获取信息流
     */
    MongoImage getImageFromMongoDB(String objectId) throws IOException;
}
